package org.zy.springbaselearn.aspect;

import org.aspectj.lang.ProceedingJoinPoint;

/**
 * @author zy
 * @version 1.0
 * @date 2021/2/16 22:35
 * @description
 * @modified
 */
public class LoggerAspect {
    public Object log(ProceedingJoinPoint joinPoint) throws Throwable {
        System.out.println("start log:" + joinPoint.getSignature().getName());
        Object object = joinPoint.proceed();
        System.out.println("end log:" + joinPoint.getSignature().getName());
        return object;
    }
}
